python replace all regex matches in string